#分割线
print('='*100)
#上输出
for i in range(1,10):
    for x in range(9-i,0,-1):
        print("        ",end='')
    for j in range(i,0,-1):
        print('{0}X{1}={2:<2d}  '.format(j,i,j*i),end='')
    print()
#分割线
print('='*100)
#下输出
for i in range(9,0,-1):
    for x in range(0,9-i):
        print('        ',end='')
    for j in range(i,0,-1):
        print('{0}X{1}={2:<2d}  '.format(j,i,j*i),end='')
    print()
#分割线
print('='*100)